package cn.mybatis.school;

import java.io.Serializable;

//实体类
public class Subject implements Serializable {
	private long id;
	private String subjectname;
	private long gradeid;
	private long classhour;

	public Subject() {
		super();
	}

	protected Subject(long id) {
		super();
		this.id = id;
	}

	protected Subject(long id, String subjectname, long gradeid, long classhour) {
		super();
		this.id = id;
		this.subjectname = subjectname;
		this.gradeid = gradeid;
		this.classhour = classhour;
	}

	@Override
	public String toString() {
		return "Subject [id=" + id + ", subjectname=" + subjectname + ", gradeid=" + gradeid + ", classhour="
				+ classhour + "]";
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getSubjectname() {
		return subjectname;
	}

	public void setSubjectname(String subjectname) {
		this.subjectname = subjectname;
	}

	public long getGradeid() {
		return gradeid;
	}

	public void setGradeid(long gradeid) {
		this.gradeid = gradeid;
	}

	public long getClasshour() {
		return classhour;
	}

	public void setClasshour(long classhour) {
		this.classhour = classhour;
	}

}
